TEMPLATE = app
TARGET = passgen-mdn

target.path = /opt/$${TARGET}/bin
INSTALLS *= target

QT += core gui
CONFIG += meegotouch mssf-qt
MSSF += crypto

QMAKE_CXXFLAGS *= -fvisibility=hidden -fvisibility-inlines-hidden

DEFINES *= QT_NO_CAST_TO_ASCII QT_NO_CAST_FROM_ASCII

# icons
svg_icon.files = $${TARGET}.svg
svg_icon.path = /opt/passgen-mdn/share/icons

png_icon.files = $${TARGET}.png
png_icon.path = /opt/passgen-mdn/share/icons

INSTALLS *= svg_icon png_icon

# desktop file
desktopfile.files = $${TARGET}.desktop
desktopfile.path = /usr/share/applications
INSTALLS *= desktopfile

# theme files
themes.path = $$(DESTDIR)/usr/share/themes/base/meegotouch/$${TARGET}/style
themes.files = *.css

INSTALLS *= themes

# styles

STYLE_HEADERS *= \
    passgenwidgetstyle.h

# source
SOURCES += main.cpp \
    mainpage.cpp \
    passgenwidget.cpp

HEADERS += \
    mainpage.h \
    passgenwidget.h \
    passgenwidgetstyle.h \
    translations.h

OTHER_FILES += \
    passgen-mdn.desktop \
    passgen-mdn.svg \
    passgen-mdn.png \
    passgen-mdn.css
